package com.lhsy.djcloud.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author wangzw
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dj_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * hrID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer tenantId;

    /**
     * 姓名
     */
    private String name;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 住宅电话
     */
    private String telephone;
    /**
     * 性别 1=男 2=女
     */
    private Integer sex;
    /**
     * 身份证号
     */
    private String idCard;
    /**
     * 民族
     */
    private String national;
    /**
     * 政治面貌
     */
    private String political;
    /**
     * 文化程度
     */
    private String cultural;
    /**
     * 职业
     */
    private String job;

    /**
     * 联系地址
     */
    private String address;

    private Boolean enabled;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 所属部门id
     */
    private Integer deptId;

    /**
     * 用户角色名称
     */
    private String roleName;

    private String userface;

    private String remark;

    @TableField(exist = false)
    private Department department;

    @TableField(exist = false)
    private Integer count;


}
